211ea21476b2e864c2231e6671dbaca2620de779,xml/impl/src/com/intellij/xml/actions/GenerateXmlTagAction.java,GenerateXmlTagAction,invoke,#Project#Editor#PsiFile#,67
Before Change
runnable.run();
}
else {
JBPopupFactory.getInstance().createListPopupBuilder(list).setTitle("Choose Tag Name").setItemChoosenCallback(runnable).createPopup().showInBestPositionFor(editor);
}
}
catch (CommonRefactoringUtil.RefactoringErrorHintException e) {
After Change
else {
JBPopupFactory.getInstance().createListPopupBuilder(list)
.setTitle("Choose Tag Name")
.setItemChoosenCallback(runnable)
.setFilteringEnabled(new Function<Object, String>() {
@Override
public String fun(Object o) {
return ((XmlElementDescriptor)o).getName();
}
})
.createPopup()
.showInBestPositionFor(editor);
}
}